home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news.primenet.com!Station2
  2. From: jrpalmer@primenet.com (James R. Palmer)
  3. Newsgroups: comp.lang.c++
  4. Subject: Visual C 4.0 CBitmapButton Problem - Please Help
  5. Date: 17 Jan 1996 22:01:02 -0700
  6. Organization: Primenet
  7. Sender: root@primenet.com
  8. Message-ID: <4dkk6e$2n2@nnrp1.news.primenet.com>
  9. X-Posted-By: ip094.phx.primenet.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. If anyone can help, I sure would appreciate it.
  13.  
  14. I am new to the MSVC++ programming environment and I am trying to make a 
  15. button on a dialog box display a bitmap.  I believe that I have followed the 
  16. directions correctly in the manual in that the button caption is REDBUTTON and 
  17. the bitmaps that were also created in "ResourceView" were named with ids of 
  18. REDBUTTONU, REDBUTTOND, REDBUTTONF, REDBUTTONX.  I also tried it with names of 
  19. "RED<L>".
  20.  
  21. The problem was that the "AutoLoad" function within the CBitmapButton was 
  22. failing.  Upon using the debugger, I found that the internal MFC routine was 
  23. correctly looking for "REDBUTTONU", but was unable to find it within the .EXE.
  24.  
  25. My first guess is that I may need to configure VC++ to include the resources 
  26. into the project in some way (AppWizard did create the start up application). 
  27. Or is there some other obvious problem that I have overlooked?
  28.